package com.ls.fw.frame.api.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.ls.fw.frame.api.dao.ApiAccessLogDao;
import com.ls.fw.frame.api.model.ApiAccessLog;
import com.ls.fw.frame.api.model.example.ApiAccessLogExample;
import com.ls.fw.frame.api.vo.ApiAccessLogVo;
import com.ls.fw.frame.api.service.ApiAccessLogService;
import com.ls.fw.data.rdb.impl.dao.EntityDao;
import com.ls.fw.data.rdb.impl.service.EntityServiceAdapter;


/**
 * 
 * @author ls
 * 2016年06月10日 16时43分00秒
 */
@Service("apiAccessLogService")   
public class ApiAccessLogServiceImpl extends EntityServiceAdapter<ApiAccessLog,ApiAccessLogVo,java.lang.Long>  implements ApiAccessLogService{
	
    private ApiAccessLogDao apiAccessLogDao = null;
   
    @Resource
    public void setApiAccessLogDao(ApiAccessLogDao apiAccessLogDao) {
		this.apiAccessLogDao = apiAccessLogDao;
    }
 
	
	@SuppressWarnings("unchecked")
	@Override
	public <D extends EntityDao<ApiAccessLog, ApiAccessLogVo,java.lang.Long>> D getEntityDao(){
		return (D) apiAccessLogDao;
	}
	
	@Override
	public List<ApiAccessLog> selectByExample(ApiAccessLogExample example) {
		return this.apiAccessLogDao.getMapper().selectByExample(example);
	}


	@Override
	public ApiAccessLog selectOneByExample(ApiAccessLogExample example) {
		return this.apiAccessLogDao.getMapper().selectOneByExample(example);
	}

	@Override
	public ApiAccessLog selectOne(ApiAccessLog record) {
		return this.apiAccessLogDao.getMapper().selectOne(record);
	}


	@Override
	public List<ApiAccessLog> select(ApiAccessLog record) {
		return this.apiAccessLogDao.getMapper().select(record);
	}


	@Override
	public int deleteByExample(ApiAccessLogExample example) {
		return this.apiAccessLogDao.getMapper().deleteByExample(example);
	}


	@Override
	public int updateByExampleSelective(ApiAccessLog record,
			ApiAccessLogExample example) {
		return this.apiAccessLogDao.getMapper().updateByExampleSelective(record, example);
	}
}
